package com.red.service.impl;

import com.red.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

public class Service {
    protected SqlSession session;

    public Service() {
        session = MyBatisUtil.openSession();
    }

    protected void destroy() {
        session.close();
    }
}
